<?php

declare(strict_types=1);

namespace app\example\controller;

use app\admin\BaseAdminController;
use think\facade\View;

class Editor extends BaseAdminController
{
    public function index()
    {
        View::assign('title', 'ckeditor 5/编辑器插件');
        View::assign('addJs', addJs(['ckeditor5']));
        return View::fetch();
    }

    public function editormd()
    {
        View::assign('title', 'editormd/编辑器插件');
        View::assign('addJs', addJs(['editormd']));
        return View::fetch();
    }

    public function summernote()
    {
        View::assign('title', 'summernote/编辑器插件');
        View::assign('addJs', addJs(['summernote']));
        return View::fetch();
    }

    public function tinymce()
    {
        View::assign('title', 'tinymce/编辑器插件');
        View::assign('addJs', addJs(['tinymce']));
        return View::fetch();
    }

    public function wangeditor()
    {
        View::assign('title', 'wangeditor/编辑器插件');
        View::assign('addJs', addJs(['wangEditor']));
        return View::fetch();
    }
}
